<?php
class PNSpaMenuTime extends PNObject {
  function PNSpaMenuTime($init=null, $where='')
  {
    $this->PNObject();

    $this->_objType       = 'spaservice_spamenutime';
    $this->_objField      = 'id';
    $this->_objPath       = 'form';

    $this->_init($init, $where);
  }
  
  function getDataFromInputJSON($key = null, $default = null, $source = 'REQUEST')
  {
      if (!$key) {
          $key = $this->_objPath;
      }

      $obj = FormUtil::getPassedValue($key, $default, $source);
      $obj = json_decode($obj);
      if ($obj) {
          $this->_objData = $obj;
          $this->getDataFromInputPostProcess();
          return $this->_objData;
      }

      return $default;
  }
}